package com.ph.website.home;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.web.context.WebServerPortFileWriter;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
public class HomeMain {

    public static void main(String... args){
        SpringApplication app = new SpringApplication(HomeMain.class);
        app.addListeners(new ApplicationPidFileWriter("logs/home.pid"));
        app.addListeners(new WebServerPortFileWriter("logs/home.port"));
        ConfigurableApplicationContext context = app.run(args);
        System.out.println("--->> 项目启动成功! <<---");
    }
}
